import { myApi } from '../../api/My/index';


// 书
export const useMyApiFun = (url: string) => {
    return new Promise((resolve,reject) => {
        (async () => {
            try {
                const res = await myApi(url);
                resolve(res);
            } catch (e) {
                reject(e)
            }
        })()
    })
}

export default useMyApiFun